package com.study.observer.gper;

public class Test {
    public static void main(String[] args) {
        Question question = new Question();
        question.setUserName("小学生");
        question.setContent("观察者模式的使用场景");

        GPer gPer = GPer.instance();
        gPer.addObserver(new Teacher("Tom"));
        gPer.publishQuestion(question);
    }
}
